package com.flower.subject.application.convert;

import com.flower.subject.application.dto.SubjectCategoryDTO;
import com.flower.subject.domain.entity.SubjectCategoryBO;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author lavender
 * @version 1.0
 * @date 2024-07-03 11:34
 */
@Mapper
public interface SubjectCategoryDTOConverter {
    SubjectCategoryDTOConverter INSTANT = Mappers.getMapper(SubjectCategoryDTOConverter.class);

    SubjectCategoryBO convertBoTOCategory(SubjectCategoryDTO subjectCategoryDTO);

    List<SubjectCategoryDTO> convertBoTOCategoryDTOList(List<SubjectCategoryBO> subjectCategoryDTO);

    SubjectCategoryBO covertDTOtoCategory(SubjectCategoryDTO subjectCategoryDTO);
}
